<%
'赤金CMS www.cjAsp.com All Rights Reserved 
'文件名称：var.inc
'作用：网站全局变量定义

dim cookieName '缓存名称
dim siteName, siteTitle, siteUrl, isHtml, checkAmount, fileExt, isBook, bookAuditing, uploadDir, uploadType, uploadSize
dim infoTotal, page, rows, newsRows, productRows, bookRows 'page

dim re, fso, fileName, pageUrl, webHost, comeUrl '对象
dim picUrl, hits
dim genreID, genreType, genreName, genreShortName, genreUnit, genreUrl, allGenreType
dim infoID, infoUrl, dateTime, title, content, auditing, prevInfo, nextInfo 'Common
dim classID, className, classUrl 'class
dim indexViewID, ourViewID, viewID, genreViewID, classViewID, contentViewID, infoViewID, viewName, viewContent 'view
dim newsID, author, copyFrom, isTop 'news
dim productID, price, productType, manufacturer, isStop, proUrl1, proUrl2 'product
dim bookID, userID, userName, userIP, userAddr, isShow, userEmail, editCode 'book

webHost = request.serverVariables("HTTP_HOST")
cookieName = "cjAsp" & replace(webHost, ".", "")
comeUrl = request.serverVariables("Http_Referer")
fileName = request.serverVariables("PATH_INFO")
userIP = request.serverVariables("HTTP_X_FORWARDED_FOR")
if userIP = "" then
	userIP = request.serverVariables("REMOTE_ADDR")
end if

userID = 0
classID = 0
genreID = 0
genreType = 0
className = ""
classViewID = 0
contentViewID = 0
genreViewID = 0
allGenreType = array("未知", "产品", "留言", "文章") '1-产品，2-留言，3-新闻

page = app.int1(trim(request("page")))
rows = app.int(trim(request("rows")))
if page < 1 then
    page = 1
end if
if rows < 1 or rows > 1000 then
	rows = 20
end if

'正则式替换对象
set re = New RegExp
re.IgnoreCase = true
re.Global = true
re.MultiLine = true

'文件对象
set fso = server.createObject("scripting.fileSystemObject")




%>